import request from '@/utils/request'

// 查询责任告知书列表
export function listResponsibilityNotice(query) {
  return request({
    url: '/responsibility/data/responsibilityNotice/list',
    method: 'get',
    params: query
  })
}

// 查询责任告知书详细
export function getResponsibilityNotice(id) {
  return request({
    url: '/responsibility/data/responsibilityNotice/' + id,
    method: 'get'
  })
}

// 新增责任告知书
export function addResponsibilityNotice(data) {
  return request({
    url: '/responsibility/data/responsibilityNotice',
    method: 'post',
    data: data
  })
}

// 修改责任告知书
export function updateResponsibilityNotice(data) {
  return request({
    url: '/responsibility/data/responsibilityNotice',
    method: 'put',
    data: data
  })
}

// 删除责任告知书
export function delResponsibilityNotice(id) {
  return request({
    url: '/responsibility/data/responsibilityNotice/' + id,
    method: 'delete'
  })
}

// 导出责任告知书
export function exportResponsibilityNotice(query) {
  return request({
    url: '/responsibility/data/responsibilityNotice/export',
    method: 'get',
    params: query
  })
}